import Cookies from 'js-cookie'
import { LocalKeys } from '@/enum/constant'
export function getToken() {
  return Cookies.get(LocalKeys.AccessToken) || ''
  // localStorage.getItem(LocalKeys.AccessToken) || ''
}

export function setToken(token: string) {
  if (token) {
    return Cookies.set(LocalKeys.AccessToken, token)
  }
}
